<!--{subtemplate common/header}-->
<link rel="stylesheet" type="text/css" href="data/cache/style_{STYLEID}_forum_index.css?{VERHASH}" />
<!--{subtemplate common/pubsearchform}-->

<!--{ad/text/wp a_t}-->
<style id="diy_style" type="text/css"></style>
<div class="wp">
	<!--[diy=diy1]--><div id="diy1" class="area"></div><!--[/diy]-->
</div>
<div id="ct" class="wp cl{if $_G['setting']['forumallowside']} ct2{/if}">
	<div id="chart" class="bm bw0 cl">
		<!--{if $_G['uid']}--><p class="y"><a href="home.php?mod=space&uid=$_G['uid']&do=thread&view=me" title="{lang my_posts}" class="xi2">{lang my_posts}</a><span class="pipe">|</span><a href="search.php?mod=forum&srchfrom=$newthreads&searchsubmit=yes" title="{lang show_newthreads}" class="xi2">{lang show_newthreads}</a></p><!--{/if}-->
		<p class="chart">{lang index_today}: <em>$todayposts</em><span class="pipe">|</span>{lang index_yesterday}: $postdata[0]<span class="pipe">|</span>{lang index_posts}: <em>$posts</em><span class="pipe">|</span>{lang index_members}: <em>$_G['cache']['userstats']['totalmembers']</em><!--{if $_G['setting']['lastmember']}--><span class="pipe">|</span>{lang welcome_new_members}: <em>$_G['setting']['lastmember']</em><!--{/if}--></p>
	</div>
	<!--
	<!--{if empty($gid) && $announcements}-->
		<div id="an" class="bm bw0">
			<dl class="cl">
				<dt class="z xw1">{lang announcements}:&nbsp;</dt>
				<dd>
					<div id="anc" class="xi2"><ul id="ancl">$announcements</ul></div>
				</dd>
			</dl>
		</div>
		<script type="text/javascript">announcement();</script>
	<!--{/if}-->
	-->
<style>
#hotPost {
    border: 1px solid #BDC8DD;
    float: left;
    height: 190px;
    text-align: left;
    width: 325px;
}	
#hotPost ul {
	margin-top:5px;
    color: #204E99;
    font-size: 12px;
    line-height: 23px;
    list-style: none outside none;
}
#notePost {
	border-color: #BDC8DD;
    border-style: solid solid solid none;
    border-width: 1px;
    float: left;
    height: 190px;
    text-align: left;
    width: 325px;
}
#notePost ul {
    color: #204E99;
    font-size: 12px;
    line-height: 23px;
    list-style: none outside none;
}
.point {
    font-weight: bold;
    text-align: right;
    width: 30px;
	padding-right:6px;
}
#hotPost img, #notePost img{
    margin-left: 10px;
    margin-right: 10px;
}
#addition ul li { 
	font-size:12px; 
	font-family: "宋体";
	padding-left:10px;
}
#bimg {
    width:300px;
    height: 170px;
    overflow: hidden;
}
.hot_left {
    float: left;
    width: 300px;
	margin-left:5px;
}
#info {
	float:left;
    font-size: 12px;
    font-weight: bold;
    line-height: 22px;
}
.lkff {
    background-color: #F2F2F2;
    float: left;
    height: 22px;
    left: 0;
    overflow: hidden;
    padding: 0 5px;
    text-align: left;
    width: 210px;
}
#simg {
    background-color: #F2F2F2;
    float: right;
    padding: 3px 0 3px 5px;
    width: 75px;
}
#simg div {
    background: none repeat scroll 0 0 #FF7D01;
    color: #FFFFFF;
    cursor: pointer;
    float: left;
    font-size: 11px;
    height: 16px;
    line-height: 16px;
    margin-left: 2px;
    text-align: center;
    width: 16px;
}
#simg .f1 {
    background: none repeat scroll 0 0 #FFFCF0;
    color: #333333;
}
.undis {
    display: none;
}
.dis {
    display: block;
}
</style>
<div style="margin-bottom:10px;" id='addition'>
	<div id="hotPost">
		<img src="http://www.weekuu.com/ttday/static/image/ttday/hotpost.jpg"><span style="color:#204E99;font-size:14px;font-weight:bold;">论坛热帖</span><br/>
		<ul>
		</li>
			<!--{loop $_G['hotposts'] $hotpost}-->
			<li>
				<span class="point">·</span><span><a href="/forum.php?mod=viewthread&tid=$hotpost['tid']"><!--{eval echo mb_substr($hotpost['subject'],0,25,"UTF-8");}--></a></span>
			</li>
			<!--{/loop}-->	
		</ul>
	</div>
	<div id="notePost">
		<img src="http://www.weekuu.com/ttday/static/image/ttday/notepost.jpg"><span style="color:#204E99;font-size:14px;font-weight:bold;">论坛公告</span><br/>
		<ul>
			<!--{loop $_G['announcements'] $announcement}-->
			<li><span class="point">·</span><span><a href="http://pudong.ttday.com/forum.php?mod=announcement&id=$announcement['id']"><!--{eval echo mb_substr($announcement['subject'],0,27,"UTF-8");}--></a></span></li>
			<!--{/loop}-->	
		</ul>			
	</div>
	<div class="hot_left">
            <!--滚动图片开始-->
	            <div id="bimg" class="ifocus">
	            	<!--{loop $imgposts $imgpost}-->
	            	<div name="f" class="dis">
	            		<a target="_blank" href="$imgpost[link]">
	            			<img width="300" height="170" src="$imgpost[pic]">
						</a>
					</div>
					<!--{/loop}-->
				</div>
				<div id="info" class="lkff">
					<!--{loop $imgposts $imgpost}-->
					<div name="f" class="dis">
						<a target="_blank" href="$imgpost[link]">$imgpost[title]</a>
					</div>
					<!--{/loop}-->
				</div>            
				<div id="simg">
                <div name="f" onclick="play(x[0],0)" class="">1</div>
                <div name="f" onclick="play(x[1],1)" class="f1">2</div>
                <div name="f" onclick="play(x[2],2)" class="f1">3</div>
                <div name="f" onclick="play(x[3],3)" class="f1">4</div>
            </div>
            <script type="text/javascript" src="/static/js/index_scroll.js"></script>
            <!--滚动图片结束-->
        </div>	
	<div style="clear:both;"></div>	
</div>
	<div class="mn">
		<!--{hook/index_top}-->

		<!--{if !empty($_G['cache']['heats']['message'])}-->
			<div class="bm">
				<div class="bm_h cl">
					<h2>{lang hotthreads_forum}</h2>
				</div>
				<div class="bm_c cl">
					<div class="heat z">
						<!--{loop $_G['cache']['heats']['message'] $data}-->
							<dl class="xld">
								<dt><!--{if $_G['adminid'] == 1}--><a class="d" href="forum.php?mod=misc&action=removeindexheats&tid=$data[tid]" onclick="return removeindexheats()">delete</a><!--{/if}-->
								<a href="forum.php?mod=viewthread&tid=$data[tid]" target="_blank" class="xi2">$data[subject]</a></dt>
								<dd>$data[message]</dd>
							</dl>
						<!--{/loop}-->
					</div>
					<ul class="xl heatl">
					<!--{loop $_G['cache']['heats']['subject'] $data}-->
						<li><!--{if $_G['adminid'] == 1}--><a class="d" href="forum.php?mod=misc&action=removeindexheats&tid=$data[tid]" onclick="return removeindexheats()">delete</a><!--{/if}--><a href="forum.php?mod=viewthread&tid=$data[tid]" target="_blank" class="xi2">$data[subject]</a></li>
					<!--{/loop}-->
					</ul>
				</div>
			</div>
		<!--{/if}-->

		<div class="fl bm">
		<!--{loop $catlist $key $cat}-->
			<div class="bm bmw {if $cat['forumcolumns']} flg{/if} cl">
				<div class="bm_h cl">
					<span class="o">
						<img id="category_$cat[fid]_img" src="{IMGDIR}/$cat[collapseimg]" title="{lang spread}" alt="{lang spread}" onclick="toggle_collapse('category_$cat[fid]');" />
					</span>
					<!--{if $cat['moderators']}--><span class="y">{lang forum_category_modedby}: $cat[moderators]</span><!--{/if}-->
					<!--{eval $caturl = !empty($cat['domain']) && !empty($_G['setting']['domain']['root']['forum']) ? 'http://'.$cat['domain'].'.'.$_G['setting']['domain']['root']['forum'] : '';}-->
					<h2><a href="{if !empty($caturl)}$caturl{else}forum.php?gid=$cat[fid]{/if}" style="{if $cat[extra][namecolor]}color: {$cat[extra][namecolor]};{/if}">$cat[name]</a></h2>
				</div>
				<div id="category_$cat[fid]" class="bm_c" style="$collapse['category_'.$cat[fid]]">
					<table cellspacing="0" cellpadding="0" class="fl_tb">
						<tr>
						<!--{loop $cat[forums] $forumid}-->
						<!--{eval $forum=$forumlist[$forumid];}-->
						<!--{eval $forumurl = !empty($forum['domain']) && !empty($_G['setting']['domain']['root']['forum']) ? 'http://'.$forum['domain'].'.'.$_G['setting']['domain']['root']['forum'] : 'forum.php?mod=forumdisplay&fid='.$forum['fid'];}-->
						<!--{if $cat['forumcolumns']}-->
							<!--{if $forum['orderid'] && ($forum['orderid'] % $cat['forumcolumns'] == 0)}-->
								</tr>
								<!--{if $forum['orderid'] < $cat['forumscount']}-->
									<tr class="fl_row">
								<!--{/if}-->
							<!--{/if}-->
							<td class="fl_g" width="32.9%">
								<div class="fl_icn_g"{if !empty($forum[extra][iconwidth]) && !empty($forum[icon])} style="width: {$forum[extra][iconwidth]}px;"{/if}>
								<!--{if $forum[icon]}-->
									$forum[icon]
								<!--{else}-->
									<a href="$forumurl"{if $forum[redirect]} target="_blank"{/if}><img src="{IMGDIR}/forum{if $forum[folder]}_new{/if}.gif" alt="$forum[name]" /></a>
								<!--{/if}-->
								</div>
								<dl{if !empty($forum[extra][iconwidth]) && !empty($forum[icon])} style="margin-left: {$forum[extra][iconwidth]}px;"{/if}>
									<dt><a href="$forumurl"{if $forum[redirect]} target="_blank"{/if}{if $forum[extra][namecolor]} style="color: {$forum[extra][namecolor]};"{/if}>$forum[name]</a><!--{if $forum[todayposts] && !$forum['redirect']}--><em class="xw0 xi1" title="{lang forum_todayposts}"> ($forum[todayposts])</em><!--{/if}--></dt>
									<!--{if empty($forum[redirect])}--><dd><em>{lang forum_threads}: $forum[threads]</em>, <em>{lang forum_posts}: $forum[posts]</em></dd><!--{/if}-->
									<dd>
									<!--{if $forum['permission'] == 1}-->
										{lang private_forum}
									<!--{else}-->
										<!--{if $forum['redirect']}-->
											<a href="$forumurl" class="xi2">{lang url_link}</a>
										<!--{elseif is_array($forum['lastpost'])}-->
											<!--{if $cat['forumcolumns'] < 3}-->
												<a href="forum.php?mod=redirect&tid=$forum[lastpost][tid]&goto=lastpost#lastpost" class="xi2"><!--{echo cutstr($forum[lastpost][subject], 30)}--></a> <cite>$forum[lastpost][dateline] <!--{if $forum['lastpost']['author']}-->$forum['lastpost']['author']<!--{else}-->{lang anonymous}<!--{/if}--></cite>
											<!--{else}-->
												<a href="forum.php?mod=redirect&tid=$forum[lastpost][tid]&goto=lastpost#lastpost">{lang forum_lastpost}: $forum[lastpost][dateline]</a>
											<!--{/if}-->
										<!--{else}-->
											{lang never}
										<!--{/if}-->
									<!--{/if}-->
									</dd>
								</dl>
							</td>
						<!--{else}-->
							<td class="fl_icn" {if !empty($forum[extra][iconwidth]) && !empty($forum[icon])} style="width: {$forum[extra][iconwidth]}px;"{/if}>
								<!--{if $forum[icon]}-->
									$forum[icon]
								<!--{else}-->
									<a href="$forumurl"{if $forum[redirect]} target="_blank"{/if}><img src="{IMGDIR}/forum{if $forum[folder]}_new{/if}.gif" alt="$forum[name]" /></a>
								<!--{/if}-->
							</td>
							<td>
								<h2><a href="$forumurl"{if $forum[redirect]} target="_blank"{/if}{if $forum[extra][namecolor]} style="color: {$forum[extra][namecolor]};"{/if}>$forum[name]</a><!--{if $forum[todayposts] && !$forum['redirect']}--><em class="xw0 xi1" title="{lang forum_todayposts}"> ($forum[todayposts])</em><!--{/if}--></h2>
								
								<!--{if isset($sub_forums) && !empty($sub_forums[$forum[fid]])}-->
								<h2 style="font-weight:normal;">子版块:
								<!--{loop $sub_forums[$forum[fid]] $sub_forum}-->
								&nbsp;<a href="forum.php?mod=forumdisplay&fid=$sub_forum[fid]">$sub_forum[name]</a>
								<!--{/loop}-->
								</h2>
								<!--{/if}-->
								<!--{if $forum[description]}--><p class="xg2">$forum[description]</p><!--{/if}-->
								<!--{if $forum['subforums']}--><p>{lang forum_subforums}: $forum['subforums']</p><!--{/if}-->
								<!--{if $forum['moderators']}--><p>{lang forum_moderators}: <span class="xi2">$forum[moderators]</span></p><!--{/if}-->
							</td>
							<td class="fl_i">
								<!--{if empty($forum[redirect])}--><span class="xi2">$forum[threads]</span><span class="xg1"> / $forum[posts]</span><!--{/if}-->
							</td>
							<td class="fl_by">
								<div>
								<!--{if $forum['permission'] == 1}-->
									{lang private_forum}
								<!--{else}-->
									<!--{if $forum['redirect']}-->
										<a href="$forumurl" class="xi2">{lang url_link}</a>
									<!--{elseif is_array($forum['lastpost'])}-->
										<a href="forum.php?mod=redirect&tid=$forum[lastpost][tid]&goto=lastpost#lastpost" class="xi2"><!--{echo cutstr($forum[lastpost][subject], 30)}--></a> <cite>$forum[lastpost][dateline] <!--{if $forum['lastpost']['author']}-->$forum['lastpost']['author']<!--{else}-->{lang anonymous}<!--{/if}--></cite>
									<!--{else}-->
										{lang never}
									<!--{/if}-->
								<!--{/if}-->
								</div>
							</td>
						</tr>
						<tr class="fl_row">
						<!--{/if}-->
						<!--{/loop}-->
						$cat['endrows']
						</tr>
					</table>
				</div>
			</div>
			<!--{ad/intercat/bm a_c/$cat[fid]}-->
		<!--{/loop}-->
		</div>

		<!--{hook/index_middle}-->

		<!--{if empty($gid) && $_G['setting']['whosonlinestatus']}-->
		<style>
			.bm_h{
				border-bottom:none;
			}
		</style>
			<div id="online" class="bm oll">
				<div class="bm_h">
				<!--{if $detailstatus}-->
					<h3>
						<strong>{lang onlinemember}</strong>
						<span class="xs1">- <strong>$onlinenum</strong> {lang onlines}
						- <strong>$membercount</strong> {lang index_members}(<strong>$invisiblecount</strong> {lang index_invisibles}),
						<strong>$guestcount</strong> {lang index_guests}
						- {lang index_mostonlines} <strong>$onlineinfo[0]</strong> {lang on} <strong>$onlineinfo[1]</strong>.</span>
					</h3>
				<!--{else}-->
					<h3>
						<strong><a href="home.php?mod=space&do=friend&view=online&type=member">{lang onlinemember}</a></strong>
						<span class="xs1">- {lang total} <strong>$onlinenum</strong> {lang onlines}
						- {lang index_mostonlines} <strong>$onlineinfo[0]</strong> {lang on} <strong>$onlineinfo[1]</strong>.</span>
					</h3>
				<!--{/if}-->
				</div>
			</div>
		<!--{/if}-->

		<!--{if empty($gid) && ($_G['cache']['forumlinks'][0] || $_G['cache']['forumlinks'][1] || $_G['cache']['forumlinks'][2])}-->
		<div class="bm lk">
			<div id="category_lk" class="bm_c ptm">
				<!--{if $_G['cache']['forumlinks'][0]}-->
					<ul class="m mbn cl">$_G['cache']['forumlinks'][0]</ul>
				<!--{/if}-->
				<!--{if $_G['cache']['forumlinks'][1]}-->
					<div class="mbn cl">
						$_G['cache']['forumlinks'][1]
					</div>
				<!--{/if}-->
				<!--{if $_G['cache']['forumlinks'][2]}-->
					<ul class="x mbm cl">
						$_G['cache']['forumlinks'][2]
					</ul>
				<!--{/if}-->
			</div>
		</div>
		<!--{/if}-->

		<!--{hook/index_bottom}-->
	</div>

	<!--{if $_G['setting']['forumallowside']}-->
		<div id="sd" class="sd">
			<!--{hook/index_side_top}-->
			<div class="drag">
				<!--[diy=diy2]--><div id="diy2" class="area"></div><!--[/diy]-->
			</div>
			<!--{hook/index_side_bottom}-->
		</div>
	<!--{/if}-->
</div>

<div class="wp mtn">
	<!--[diy=diy3]--><div id="diy3" class="area"></div><!--[/diy]-->
</div>
<!--{subtemplate common/footer}-->